package cn.cxy.demo.ui.adapter

import cn.cxy.demo.R
import cn.cxy.demo.network.response.Article
import com.chad.library.adapter.base.BaseQuickAdapter
import com.chad.library.adapter.base.BaseViewHolder
import kotlinx.android.synthetic.main.item_article.view.*

class ArticleAdapter(layoutResId: Int = R.layout.item_article) :
        BaseQuickAdapter<Article, BaseViewHolder>(layoutResId) {

    override fun convert(helper: BaseViewHolder, item: Article) {
        helper.run {
            itemView.run {
                titleTv.text = item.title
            }
        }
    }
}